package com.atguigu.springbootdemo.beans;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Created by Smexy on 2023/3/22
 * bean的要求:
 * ①有空参构造器
 * ②为私有属性提供公共的getter,setter
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee
{
    //都要使用包装类型，不要使用基本数据类型(都有默认值，会干扰)
    //private int id;
    private Integer id;
    private String lastName;
    private String gender;
    private String email;

    /*public void setLast_name(String a){
        lastName = a;
    }*/
}
